
<!--    继承layouts/std_master.php模板  -->
@extends('layouts.std_master')

<!-- 重写内容  -->
@section('content')

<h3 align="center">结题报告</h3>
<form action="/std/final_write" method="POST" align="center" enctype="multipart/form-data">
	<table align="center" border="1">


		@if($report->project->type <= 7)
		<tr>
			<th>研究成果</th>
			<td>	
				<textarea rows="10" cols="100" name="研究成果"  placeholder="请填写研究成果">{{$report->infos->研究成果 or '请输入所遇问题。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>附件：</th>
			<td><input type="file" name="file" >
	附件：<a href="/argue_book/{{$report->infos->attachmentpath }}/{{$report->infos->attachmentname }}">{{$report->infos->attachmentname or ''}}</a>
			</td>
		</tr>

		@else

		<tr>
			<th>研究成果</th>
			<td>	
				<textarea rows="10" cols="100" name="研究成果" disabled placeholder="请填写研究成果">{{$report->infos->研究成果 or '请输入所遇问题。。。'}}</textarea>
			</td>
		</tr>
		<tr>
			<th>附件：</th>
			<td><input type="file" name="file" disabled>
	附件：<a href="/argue_book/{{$report->infos->attachmentpath }}/{{$report->infos->attachmentname }}">{{$report->infos->attachmentname or ''}}</a>
			</td>
		</tr>


		@endif

		<tr>
			<th>教师评语</th>	
			<td>
				<textarea rows="10" cols="100" disabled name="教师评语" placeholder="等待教师审核">{{$report->infos->教师评语 or '等待审核中'}}</textarea>
			</td>
		</tr>
	</table><br>
	<input type="hidden" name="rid" value="{{$report->rid or ''}}" >
	<input type="hidden" name="report_type" value="{{$report->report_type }}" >
	@if($report->project->type==6||empty($report))
		<button type="submit" name="submit" >提交报告</button>
	@elseif($report->project->type==7)
		<button type="submit"  name="submit" >修改报告</button>
	@elseif($report->project->type>7)
		<button type="submit" disabled name="submit" >结题报告已完成</button><font color="red">老师已审核</font>
	@endif
</form>

@endsection